import request from '@/utils/request';

const api = {
	ARTICLE_LIST: '/discover/article_list',
	ARTICLE_DETAIL: '/discover/article_detail'
}

export async function discoverList(queryParams) {
	return request.get(api.ARTICLE_LIST, queryParams);
}

export async function articleDetail(id) {
	let params = {
		id: id
	}
	return request.get(api.ARTICLE_DETAIL, params);
}

